how to solve logarithms questions